<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<HTML>
<HEAD>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</HEAD>

<body>
	<!--  -->
	<form  name="Form1" action="${pageContext.request.contextPath}/admin/addBook"
		method="post" enctype="multipart/form-data">
		&nbsp;
		<table cellSpacing="1" cellPadding="5" width="100%" align="center"
			bgColor="#eeeeee" style="border: 1px solid #8ba7e3" border="0">
			<tr>
				<td class="ta_01" align="center" bgColor="#afd1f3" colSpan="4"
					height="26"><strong><STRONG>编辑图书</STRONG> </strong></td>
			</tr>
			<tr>
				<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
					图书名称：</td>
				<td class="ta_01" bgColor="#ffffff">
					<input type="text" name="bName"   class="bg" />
				</td>
				<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
					作者：</td>
				<td class="ta_01" bgColor="#ffffff">
					<input type="text" name="author"  class="bg" />
				</td>
			</tr>
			<tr>
				<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
					图书评分：
				</td>
				<td class="ta_01" bgColor="#ffffff">
				<input type="text" name="grade" class="bg" />
					</td>
			</tr>
			<tr>
				<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
					图书封面：</td>
				<td class="ta_01" bgColor="#ffffff" colspan="3">
				<input type="file" name="file" />&nbsp;<br/>
				</td>
			</tr>
			<tr>
				<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
					分类：</td>
				<td class="ta_01" bgColor="#ffffff" colspan="3">
					<select name="cgId">
							<c:forEach items="${categorys}" var="category">
								
									<option value="${category.cgId}">${category.cgName}</option>
							</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
					图书详情：</td>
				<td class="ta_01" bgColor="#ffffff" colspan="3">
					<textarea name="detail" rows="5" cols="30">${book.detail}</textarea>
				</td>
			</tr>
			<tr>
				<td class="ta_01" style="WIDTH: 100%" align="center" bgColor="#f5fafe" colSpan="4">
					<button type="submit"  value="确定"
						class="button_ok">&#30830;&#23450;</button> <FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
					<button type="reset" value="重置" class="button_cancel">&#37325;&#32622;</button>

					<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> <INPUT
					class="button_ok" type="button" onclick="history.go(-1)" value="返回" />
					
				</td>
			</tr>
		</table>
	</form>
</body>
</HTML>